package com.woniu.mapper;

import com.woniu.entity.Useraddress;
import java.util.List;

/**
* @author 26289
* @description 针对表【useraddress(地址表)】的数据库操作Mapper
* @createDate 2025-09-05 12:07:24
* @Entity com.woniu.entity.Useraddress
*/
public interface UseraddressMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Useraddress record);

    int insertSelective(Useraddress record);

    Useraddress selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Useraddress record);

    int updateByPrimaryKey(Useraddress record);

    // 新增：根据用户ID查询该用户的所有地址
    List<Useraddress> selectByUserId(Integer userId);
}
